package com.silence.gmall.web.config;

import org.redisson.spring.starter.RedissonAutoConfigurationV2;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author silence
 * @Email 792245022@qq.com
 * @Date 2025-06-12 16:29
 * @Description spring cloud 配置文件
 */
@Configuration
@EnableDiscoveryClient
@EnableAspectJAutoProxy
@EnableTransactionManagement
@EnableFeignClients(basePackages = "com.silence.gmall.web.**")
@EnableAutoConfiguration(exclude = {
        DataSourceAutoConfiguration.class,
        RedisAutoConfiguration.class,           // 排除 Redis 自动配置
        RedisRepositoriesAutoConfiguration.class, // 排除 Redis Repository
        RedissonAutoConfigurationV2.class       // 排除 Redisson
})
public class SpringCloudConfig {
}
